//2009/10/23 20:01:29
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class Snowflakes
{
public:
    vector <string> flareOut(vector <string> snowflake)
    {
		int n = snowflake.size();
        vector<string> v(2*snowflake.size(), string(2*snowflake.size(), 'X'));
        for (int i=0; i<n; i++)
        {
            for (int j=0; j<=i; j++)
            {
				//left-bottom;
                v[n+j][n-1-i] = snowflake[i][j];
				v[n+i][n-1-j] = snowflake[i][j];
				//left-top;
				v[n-1-i][n-1-j] = snowflake[i][j];
				v[n-1-j][n-1-i] = snowflake[i][j];
				//right-top;
				v[n-1-j][n+i] = snowflake[i][j];
				v[n-1-i][n+j] = snowflake[i][j];
				//right-bottom;
				v[n+i][n+j] = snowflake[i][j];
				v[n+j][n+i] = snowflake[i][j];
            }
        }
		return v;
    }
};
